local ScrollItem = class("ScrollItem", ccui.Layout)

function ScrollItem:ctor(resource)
    -- if resource then
    --     CSHelper.createResourceNode(self, resource)
    -- end
    if self.onCreate then
        self:onCreate()
    end
end

function ScrollItem:onCreate()
    local image = ccui.ImageView:create()
    image:loadTexture("equip_frame_01.png")
    self:addChild(image)
    image:setAnchorPoint(cc.p(0.5, 0.5))
    self:setContentSize(image:getContentSize())
    self:setAnchorPoint(cc.p(0, 0))
end

function ScrollItem:unselected()
end

function ScrollItem:activate()
end

function ScrollItem:selected(index)
    print(index)
end

return ScrollItem
